package com.ke.service;

import com.ke.pojo.BaseResp;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;

public interface ArticleCartService {
    /**
     * 添加文章到购物车
     * @param id
     * @param request
     * @return
     */
    BaseResp addArticleCart(Integer id, HttpServletRequest request);

    /**
     * 查询文章购物车
     * @param request
     * @return
     */
    BaseResp findAllArticleCart(HttpServletRequest request);

    /**
     * 从购物车删除文章
     * @param id
     * @param request
     * @return
     */
    BaseResp deleteArticleCart(Integer id, HttpServletRequest request);
}
